-
Notifications
You must be signed in to change notification settings - Fork 77
[JENKINS-50597] Network behavior tuning IV #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…al and remote loggers. Evidently StreamTaskListener does not guarantee line-level interleaving.
…ms. So far seems adequate for our purposes.
|
Hmm, errors look random, and I cannot reproduce locally, though I have seen something locally when not using a clean build. This suggests that it is specific to Guice 3; google/guice#1119 is unclear. See JENKINS-50520. |
…a-retrying library.
| new FilePath(f).untarFrom(is, FilePath.TarCompression.GZIP); | ||
| // Note that this API currently offers no count of files in the tarball we could report. | ||
| } | ||
| client.connect("download", "download " + url.toString().replaceFirst("[?].+$", "?…") + " into " + f, c -> c.execute(new HttpGet(url.toString())), response -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
… vs ... ?
should replace passwords in http://user:password@...
wouldn't be easier to parse into Url and pick the sections needed rather than regex?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, forgot to use sanitize here!
| Date lastModified = sm.getLastModified(); | ||
| saved.put(sm.getName().substring(prefixLength), new CachedMetadata(length, lastModified != null ? lastModified.getTime() : 0)); | ||
| try { | ||
| Iterator<StorageMetadata> it = listStorageMetadata(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why Iterator instead of Stream? curious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted direct handling over exceptions, which is awkward using the Stream API.
|
The upstream is still unmerged and needs a review. |
JENKINS-50597 continuing from #41.
archiveArtifacts,stash)unstashunarchive/copyartifact*zip*URLs,…/artifact/index browsing)Using jenkinsci/apache-httpcomponents-client-4-api-plugin#9:
unarchivecopyartifact